 |
|
 |
Subject: Javascript |
 |
 |
 |
Product Area: Domino Designer on Eclipse (DDE) |
 |
Technical Area: Application Development |
 |
Platform: Windows |
 |
Release: 8.5.2 |
 |
Reproducible: Always |
 |
 |
 |
 |
Hello.
I've developed this Sales tracking database that has been working just fine for quite literally years.
But now in the last two weeks javascripting within it is not working or flakey.
When accessing a radio button object I get a null or not a object.. and "undefined" is returned to the parent web document. (but there is a value).
This is even occuring on a drop down text list. - it accepts one value but not the rest...
I'm at a loss at this and just don't knwo what to do next.
So I tried to duplicate it in a seperate html files (index and wCP) and it works ok with a radio button but not a selected drop down list... It's just not making any sense.
So for example I"m posting this very simplified html/javascript code and maybe someone can tell me what's up...
===============index.htm===========================================
<html>
<head>
<script type = "text/javascript">
function show_wcp()
{
popupwindow=window.open("wCP.htm","popupwindow",'height=400,width=200,left=10,top=10,resizable=yes,scrollbars=no,toolbar=yes,menubar=no,location=no,directories=no,status=yes');
}
</script>
</head>
<body>
<form action = "">
Company : <input type="text" name="Company"
<br />
<br />
<input type="button" value="Pop up" onClick='show_wcp()'
<br />
</form>
</body>
</html>
==================wCP.htm==========================================
<html>
<head>
<title>
</title>
<script type="text/javascript">
<!--
function getValues()
{
parentdoc = opener.document.forms[0];
thisdoc = document.forms[0];
var t_company;
if ( thisdoc.new_Company.text =="")
{
for (i = 0; i < thisdoc.company.length; i++)
{
if (thisdoc.company[i].selected == true)
{
t_company = thisdoc.company[i].value;
}
else
{
t_company = thisdoc.new_Company.text;
}
}
}
else
{
parentdoc.Company.value = t_company;
}
i = 0
}
//-->
</script>
</head>
<body>
<form action="">
Company:
<select name="company">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>
<br />
<br />
New Company: <input type="text" name="new_Company" size="25" />
<br />
<br />
<input type="button" value="Save" onclick="getValues()" />
<br />
</form>
</body>
</html>
==================================================================
Screen shot at thread 3...
 
Feedback number WEBB8ED2XL created by ~Joseph Brenitexjip on 02/24/2011

Status: Open
Comments: Rewritten for clarity

Javascript (~Joseph Brenite... 24.Feb.11)
. . weird form tags (~Judy Dwofanach... 24.Feb.11)
. . . . help (~Joseph Brenite... 24.Feb.11)
. . . . . . bump.. anyone please with JS script... (~Joseph Brenite... 25.Feb.11)
. . . . . . . . Javascript (~Keiko Quetavit... 28.Feb.11)
. . . . . . . . use .value instead of .text (~Judy Fezweberg... 28.Feb.11) |
|  |
|